<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateNewsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('news', function (Blueprint $table) {
            $table->increments('id');
            $table->string('news_title',100)->comment('新闻标题');
            $table->string('p_name',100)->comment('新闻分类');
            $table->string('cate_name',100)->comment('新闻类型');
            $table->string('intro',100)->comment('新闻介绍');
            $table->string('content',100)->comment('新闻正文');
            $table->string('face',100)->comment('资源上传');
            $table->string('news_man',100)->comment('添加人');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('news');
    }
}
